#include"SeqList.h"

void TestSeqList1()
{
	SeqList s;
	SeqListInit(&s);

	SeqListPushBack(&s, 1);
	SeqListPushBack(&s, 2);
	SeqListPushBack(&s, 3);
	SeqListPushBack(&s, 4);
	SeqListPushBack(&s, 5);
	SeqListPrint(&s);

	SeqListPushFront(&s, 0);
	SeqListPrint(&s);

	SeqListPopBack(&s);
	SeqListPrint(&s);

	SeqListPopFront(&s);
	SeqListPrint(&s);

	int i=SeqListFind(&s, 4);
	printf("要找的数字在第%d位\n", i);

	SeqListInsert(&s, 3, 99);
	SeqListPrint(&s);

	SeqListErase(&s, 3);
	SeqListPrint(&s);

	SeqListDestroy(&s);
}

void main()
{
	TestSeqList1();
}